public class J04if {
    public static void main(String[] args) {
        if(true){
            System.out.println(11);
        }
        if(false){
            System.out.println(2);
        }

        if(!true){
            System.out.println(3);
        }
        //单分支
        if(5==5){
            System.out.println(5555);
        }
        System.out.println("=====");
        boolean isLogin  = true;
        isLogin= false;
        //双分支
        if(isLogin){
            System.out.println("拉起支付");
        }else{
            System.out.println("跳到登录");
        }

        //多分枝，互斥
        int score = 40;
        if(score<60){
            System.out.println("不及格");
        }else if(score<80){
            System.out.println("良好");
        }else if(score<90){
            System.out.println("优秀");
        }else{
            System.out.println("别学了，可以了");
        }
        System.out.println("==不推荐省略，==");
        if(true) System.out.println(123);

        if(true)
            System.out.println(567);

        if(false) System.out.println(1111);
        else System.out.println(222);
    }
}

class Mu3{
    public static void main(String[] args) {
        int a = true?1:2;
        System.out.println(a);//1

        System.out.println(false?1:2);//2

        int sex = 1;//1男，否则女
        if(sex==1){
            System.out.println("男");
        }else{
            System.out.println("女");
        }

        System.out.println(sex==1?"男":"女");
    }
}
